//
//  AYSDatabaseHandle.h
//  AiYingShiProject
//
//  Created by lanou on 15/11/4.
//  Copyright (c) 2015年 李晓理. All rights reserved.
//

#import <Foundation/Foundation.h>

@class AYSPlayDataModel;
@class AYSSmallListModel;
@interface AYSDatabaseHandle : NSObject

+ (instancetype)shareInstance;

// 打开数据库
- (void)openDB;

// 关闭数据库
- (void)closeDB;

#pragma mark---------收藏影片
// 添加新的影片
- (void)insertNewMovie:(AYSPlayDataModel *)movie;

// 删除影片
- (void)deleteMovie:(AYSPlayDataModel *)movie;

// 获取某个影片对象
- (AYSPlayDataModel *)selectMovieWithID:(NSNumber *)ID;

// 获取所有电影
- (NSArray *)selectAllMovie;
// 判断影片是否被收藏
- (BOOL)isFavoriteMovieWithID:(NSNumber *)ID;

#pragma mark -----------收藏视频

// 添加新的视频
- (void)insertNewVideo:(AYSSmallListModel *)video;

// 删除视频
- (void)deleteVideo:(AYSSmallListModel *)video;

// 获取某个视频对象
- (AYSSmallListModel *)selectVideoWithID:(NSNumber *)ID;

// 获取所有视频
- (NSArray *)selectAllVideo;
// 判断视频是否被收藏
- (BOOL)isFavoriteVideoWithID:(NSNumber *)ID;






















@end
